package com.cti.ftpservice.job;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

import com.cti.ftpservice.service.OnixDataService;

@Component("localOnixXmlFileInfoSaveToDataBaseJob")
public class LocalOnixXmlFileInfoSaveToDataBaseJob {

	private static Log log = LogFactory.getLog(LocalOnixXmlFileInfoSaveToDataBaseJob.class);
	
	@Resource
	private OnixDataService onixDataService;
	
	public void doWork(){
		log.info("开始本扫描需要解析的Onix文件，并保存文件信息到数据库");
		onixDataService.saveWaitToParsingOnixFileInfoToDataBase();
		log.info("Onix文件信息保存结束");
	}
}
